import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { resolve } from "path";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: `@import "./src/assets/variables.scss";`, // 引入全局的scss文件
      },
    },
  },
  resolve: {
    alias: {
      "@": resolve(__dirname, "src"), // 配置别名；将 @ 指向'src'目录
    },
  },
  server: {
    port: 3000,
  },
});
